package com.bruce.downloader.download;

import com.bruce.downloader.print.IDownloadProcessInfo;
import com.bruce.downloader.util.HttpClientUtils;
import org.springframework.http.HttpHeaders;
import org.springframework.web.client.RestTemplate;

import java.io.File;

/**
 * 简单下载器
 * <br>CreateDate  2021/09/15 16:58:02
 *
 * @author luotuan
 * @version 1.0.0
 */
public class SimpleDownloader extends AbstractDownloader {

    public SimpleDownloader(RestTemplate restTemplate) {
        super(restTemplate);
    }
    public SimpleDownloader(){
        super(HttpClientUtils.getRestTemplate());
    }

    @Override
    protected void doDownload(String decodeUrl, String dirPath, String fileName, HttpHeaders headers) {
        String filePath = dirPath+ File.separator+fileName;

    }
}
